package arithmetic.functionTest;

import lombok.Data;

/**
 * @author jiangfeng
 * Created on 2020-04-08
 */
public class Student {
    private String name;
    private Integer score;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Student(){}

    public Student(String name, Integer score) {
        this.name = name;
        this.score = score;
    }

    public Integer compare(Student other) {
        return this.score.compareTo(other.score);
    }

    public static Integer compareStatic(Student student,Student other) {
        return student.score.compareTo(other.score);
    }

}
